/*
 * @Author: Kingsley 
 * @Date: 2018-10-13 22:23:21 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2018-10-13 22:26:42
 * 商品模块的商品种类的业务层请求类
 */

import _axios from "@/utils/requestUtil";
import _urlConfig from "@/config/ProductURLConfig";

class Product {

  getProducts(info){
    return _axios.request({
      url: _urlConfig.getProducts,
      data:info,
      method: "post"
    });
  }

  /**
   * 获取商品详情
   */
  getProductDetail(productId){
    return _axios.request({
      url: _urlConfig.product_detail,
      data:{
        productId: productId
      },
      method:'post'
    });
  }

}
export default Product;
